//
//  MKItemInFoextraObject.m
//  YangDongXi
//
//  Created by 杨鑫 on 15/12/16.
//  Copyright © 2015年 yangdongxi. All rights reserved.
//

#import "MKItemInFoextraObject.h"

@implementation MKItemInFoextraObject
+ (NSDictionary *)propertyAndKeyMap
{
    return @{
             @"auctionUid" : @"auction_uid",
             @"auctionType":@"auction_type",
             @"lifeCycle":@"lifecycle",
             @"startingPrice":@"starting_price",
             @"auctionNumber":@"auction_number",
             @"startTime":@"start_time",
             @"endTime":@"end_time",
             @"priceUnit":@"price_unit",
             @"timeUnit":@"time_unit",
             @"depositObject":@"deposit",
             @"endPrice":@"end_price",
             @"nextCutTime":@"next_cut_time",
             @"isBuyer":@"is_buyer",
             @"sellerId":@"sellerId",
             @"sales":@"sales",
             @"grantRule":@"grant_rule",
             @"seckillUid":@"seckill_uid",
             @"stockNum":@"stock_num",
             @"ruleMark":@"rule_mark",
             @"ruleModuleList":@"rule_module_list",
             @"groupBuyUid":@"group_buy_uid",
             @"skuUid":@"sku_uid",
             @"depositPrice":@"deposit_price",
             @"myPrice":@"my_price"
             };
}

+(Class)classForArrayItemWithName:(NSString *)propertyName andIndex:(NSInteger)index{
    if ([propertyName isEqualToString:@"depositObject"])
    {
        return [MKItemSKUObject class];
    }
    if ([propertyName isEqualToString:@"grantRule"])
    {
        return [MKGrantRule class];
    }
    return nil;
}
@end
